package observer;

public class Client implements Observer {

    private String name;

    public Client(String name) {
        this.name = name;
    }

    @Override
    public void update(Subject server) {
        String updateMessage = server.getMessage();
        System.out.println(name + " " + updateMessage);
    }
}
